package
{
	import flash.geom.Point;

	public class Util
	{
		public function Util()
		{
		}
		
		public static function serializePoint(pnt:Point):Object{
			if(pnt == null){
				return null;
			}
			
			var ser:Object = new Object();
			ser['x'] = pnt.x;
			ser['y'] = pnt.y;
			return ser;
		}
		
		public static function unserializePoint(ser:Object):Point{
			if(ser == null){
				return null;
			}
			
			var pnt:Point = new Point(ser['x'], ser['y']);
			return pnt;
		}
	}
}